package com.dashen.sso.server;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

import javax.annotation.Resource;

/**
 * @author Barry Wang
 * 官方文档中文 https://springcloud.cc/spring-security-zhcn.html
 *            https://www.breakyizhan.com/springboot/3028.html
 * 官方文档英文 https://docs.spring.io/spring-security/site/docs/5.0.5.RELEASE/reference/html5
 *
 *          https://github.com/eugenp/tutorials/tree/master/spring-security-sso
 *          https://www.baeldung.com/sso-spring-security-oauth2
 *
 * JDBC-DDL http://andaily.com/spring-oauth-server/db_table_description.html
 */
@SpringBootApplication
public class SsoServerApplication {

    /**
     * jar : spring-security-oauth2-autoconfigure
    file : spring.factories
    org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
    org.springframework.boot.autoconfigure.security.oauth2.OAuth2AutoConfiguration
    **/
    public static void main(String[] args){

        //org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration,\
        //org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration,\
        //org.springframework.boot.autoconfigure.security.servlet.SecurityFilterAutoConfiguration,\
        //org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientAutoConfiguration oac = null;

        org.springframework.boot.autoconfigure.security.oauth2.OAuth2AutoConfiguration config = null;

        SpringApplication.run(SsoServerApplication.class, args);
    }
}
